package com.wgy.day11.类和对象;

public class Demo04Student2 {
    public static void main(String[] args) {
        Student2 stu=new Student2();//无参构造
        System.out.println("===========");
        Student2 stu1=new Student2("赵丽颖",20);//全参构造
        System.out.println("我是:"+stu1.getName()+"  年龄:"+stu1.getAge());
        System.out.println("==============");
        stu1.setAge(33);
        System.out.println("我是:"+stu1.getName()+"  年龄:"+stu1.getAge());
        System.out.println("======================");
        stu1.setAge(25);
        stu1.setName("鹿晗");
        System.out.println("我是:"+stu1.getName()+"  年龄:"+stu1.getAge());


    }
}
